logic problems and answers